package com.cdp.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdp.common.core.domain.entity.SysSand;
import com.cdp.system.dto.RawDTO;
import com.cdp.system.dto.SandDTO;
import com.cdp.system.dto.SandSecondDTO;
import com.cdp.system.vo.SysSandSecondVO;
import com.cdp.system.vo.SysSandVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 砂 Mapper 接口
 */
public interface SysSandMapper extends BaseMapper<SysSand> {

    List<SysSand> selectSand(@Param("rawDTO")RawDTO rawDTO);

    List<SysSandVO> listMistedSand(SandDTO sandDTO);


    /**
     * @param sandIds
     * @return
     */
    List<SysSand> listSandByIds(@Param("sandIds") List<Integer> sandIds);


    Map<String, Object> querySandMaxMin();

    List<SysSandSecondVO> listMistedSandSecond(SandSecondDTO sandSecondDTO);
}
